#ifndef PAGECURRENTEVENTS_H
#define PAGECURRENTEVENTS_H

#include <QWidget>
#include <QTableWidget>
#include <QDateTime>
#include <QHeaderView>
#include "global_def.h"
#include "globalconfig.h"

namespace Ui {
class PageCurrentEvents;
}

class PageCurrentEvents : public QWidget
{
    Q_OBJECT

public:
    explicit PageCurrentEvents(QWidget *parent = nullptr);
    ~PageCurrentEvents();
    void hideHintInfo();
    void updateEvent(bool xNew = false);
    void setNewEvent(bool xNew);
public slots:
    void showCurEventHint();
private slots:
    void on_btnBack_clicked();
    void slotItemClicked(QTableWidgetItem*);
    void on_btnNext_clicked();
    void on_btnPrev_clicked();
private:
    Ui::PageCurrentEvents *ui;
    void InitTable();
private:
    QTableWidget *m_pCurEventTable=nullptr;
    bool xNewEvent;
    void updateTable();
    void refreshHint();
};

#endif // PAGECURRENTEVENTS_H
